package com.zhyz.bookstore.entity;

import java.io.Serializable;

public class Book implements Serializable {
    /**
     * 书籍实体类
     */
    private String bookId;
    private String bookName;
    private String bookAuthor;//作者
    private String bookPress;//出版社
    private Category category;// 书籍种类;//书籍类别
    private String fileName;//图片名称
    private String path; // 路径
    private String bookDesc;// 简介
    private double bookPrice;// 书籍价格
    private int bookKunumber;// 库存
    private int bookXiaoNumber;// 销量

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBookPress() {
        return bookPress;
    }

    public void setBookPress(String bookPress) {
        this.bookPress = bookPress;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getBookDesc() {
        return bookDesc;
    }

    public void setBookDesc(String bookDesc) {
        this.bookDesc = bookDesc;
    }

    public double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public int getBookKunumber() {
        return bookKunumber;
    }

    public void setBookKunumber(int bookKunumber) {
        this.bookKunumber = bookKunumber;
    }

    public int getBookXiaoNumber() {
        return bookXiaoNumber;
    }

    public void setBookXiaoNumber(int bookXiaoNumber) {
        this.bookXiaoNumber = bookXiaoNumber;
    }

    public Book() {
    }

    public Book(String bookId, String bookName, String bookAuthor, String bookPress, Category category, String fileName, String path, String bookDesc, double bookPrice, int bookKunumber, int bookXiaoNumber) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.bookPress = bookPress;
        this.category = category;
        this.fileName = fileName;
        this.path = path;
        this.bookDesc = bookDesc;
        this.bookPrice = bookPrice;
        this.bookKunumber = bookKunumber;
        this.bookXiaoNumber = bookXiaoNumber;
    }

    @Override
    public String toString() {
        return "Book{" +
                "BookId='" + bookId + '\'' +
                ", BookName='" + bookName + '\'' +
                ", BookAuthor='" + bookAuthor + '\'' +
                ", BookPress='" + bookPress + '\'' +
                ", category=" + category +
                ", FileName='" + fileName + '\'' +
                ", path='" + path + '\'' +
                ", BookDesc='" + bookDesc + '\'' +
                ", BookPrice=" + bookPrice +
                ", BookKunumber=" + bookKunumber +
                ", BookXiaoNumber=" + bookXiaoNumber +
                '}';
    }

}
